@import '~antd/lib/style/themes/default.less';
@import '~@/utils/utils.less';

.tableList {
  .tableListOperator {
    margin-bottom: 20px;
  }
}

.tips {
  padding-left: 16px;
  list-style: decimal;
}

.fileName {
  width: 260px;
  color: #999;
  line-height: 220%;
  padding: 0 8px;
  margin-right: 12px;
  border-radius: 4px;
  border: 1px solid #d9d9d9;
  overflow-x: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.fileName.resultColor {
  color: rgba(0, 0, 0, 0.65);
}

.importResult {
  :global {
    .ant-table-bordered {
      .ant-table-footer {
        padding-top: 40px;
        background: #fff;
        border-width: 1px 0 0 0;
      }

      .ant-table-body {
        overflow-y: auto;
        max-height: ~'calc(100vh - 375px)';
      }
    }
  }

  .errorData {
    color: red;
    min-height: 20px;
    display: inline-block;
  }

  .listFooter {
    text-align: center;

    .footerMargin {
      margin-left: 40px;
    }
  }

  .canEditable {
    :global {
      .ant-table-row {
        cursor: pointer;
      }
    }
  }
}

.resultModal {
  :global {
    .ant-modal-body {
      margin: 15px 0;
      text-align: center;
    }

    .ant-modal-footer {
      border: 0;
      text-align: center;
      padding-bottom: 20px;
    }
  }

  .resultTitle {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;

    span {
      color: #000;
      font-size: 20px;
    }

    i {
      font-size: 40px;
      margin-right: 15px;
    }
  }

  p {
    margin: 0;
  }
}

.theadName {
  :global {
    .ant-table-column-title {
      padding-left: 55px;
    }
  }
}

.name {
  display: flex;
  align-items: center;

  &>div {
    visibility: hidden;
  }

  .showTooltip {
    visibility: visible;
  }
}

.tableListForm {
  :global {
    .ant-form-item {
      margin-bottom: 24px;
      margin-right: 0;
      display: flex;

      >.ant-form-item-label {
        width: auto;
        line-height: 32px;
        padding-right: 8px;
      }

      .ant-form-item-control {
        line-height: 32px;
      }
    }

    .ant-form-item-control-wrapper {
      flex: 1;
    }
  }

  .submitButtons {
    display: block;
    white-space: nowrap;
    margin-bottom: 24px;
  }
}

@media screen and (max-width: @screen-lg) {
  .tableListForm :global(.ant-form-item) {
    margin-right: 24px;
  }
}

@media screen and (max-width: @screen-md) {
  .tableListForm :global(.ant-form-item) {
    margin-right: 8px;
  }
}
